﻿using RayDen.Library.Entity.Scene;
using RayDen.Library.Entity.SceneGraph;

namespace RayDen.Optix.Engine.Scene.Builders
{
    public class LightBuilder : SceneBuilderComponentBase<LightsourceNode>
    {
        //private LightEmissionProfilesManager lm;

        public LightBuilder()
        {
            //lm = LightEmissionProfilesManager.Instance;
        }

        protected override void VisitInternal(LightsourceNode node)
        {
            var li = (LightsourceInfo) node.GetDataItem();
            this.Builder.LightInfos.Add(li);
        }
    }
}